<?php
$this->breadcrumbs=array(
	'Details'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'View Match', 'url'=>array('match/view', 'id'=>$match->_id)),
	array('label'=>'Mass Add Details', 'url'=>array('detail/massAdd','match_id'=>$match->_id)),
);
?>

<?php 
$dummy = new Detail();
$dummy->match_id = $match->_id;
?>

<h1>
<?php echo $match->hometeam . " - " . $match->awayteam." " . $match->homegoals ." - ". $match->awaygoals;?>
</h1>
    <div class="header" style="width:130px"><?php echo CHtml::activeLabel($dummy,'type'); ?></div>
    <div class="header" style="width:70px"><?php echo CHtml::activeLabel($dummy,'min'); ?></div>
    <div class="header" style="width:120px"><?php echo CHtml::activeLabel($dummy,'player'); ?></div>
    <div class="header" style="width:120px"><?php echo CHtml::activeLabel($dummy,'comment'); ?></div>
    <div class="header" style="width:130px"><?php echo CHtml::activeLabel($dummy,'side'); ?></div>
    <div class="header" style="width:30px"><?php echo CHtml::activeLabel($dummy,'deleted'); ?></div>
    <div class="header" style="width:70px">&nbsp;</div>
    <hr style="width:670px">
<div id="timeline">
<?php echo $this->renderPartial('_timeline', array('models'=>$models,"edit"=>true)); ?>
</div>
<div id="editItem">
<?php echo $this->renderPartial('_form', array('model'=>$dummy)); ?>
</div>






